// src/data/topologyData.js
import img from '../assets/icons/666.png'
export const nodes = [
  { 
    id: "internet", 
    label: "Internet", 
    icon: img, 
    x: 150, 
    y: 100 
  },
  { 
    id: "opticalModem", 
    label: "光纤猫", 
    icon: img, 
    x: 250, 
    y: 150 
  },
  { 
    id: "gateway", 
    label: "网关", 
    icon: img, 
    x: 350, 
    y: 150 
  },
  { 
    id: "nas", 
    label: "NAS", 
    icon: img, 
    x: 350, 
    y: 50 
  },
  { 
    id: "acManager", 
    label: "AC管理器", 
    icon: img, 
    x: 450, 
    y: 100 
  },
  { 
    id: "layer2Switch", 
    label: "二层管理交换机", 
    icon: img, 
    x: 550, 
    y: 150 
  },
  { 
    id: "monitorPoeSwitch", 
    label: "监控POE交换机", 
    icon: img, 
    x: 650, 
    y: 100 
  },
  { 
    id: "poeSwitch", 
    label: "POE交换机", 
    icon: img, 
    x: 650, 
    y: 200 
  },
  { 
    id: "nvr", 
    label: "NVR", 
    icon: img, 
    x: 550, 
    y: 300 
  },
  { 
    id: "videoDoorPhone", 
    label: "可视门口机", 
    icon: img, 
    x: 450, 
    y: 250 
  },
  { 
    id: "videoDoorDecoder", 
    label: "可视门禁解码器", 
    icon: img, 
    x: 500, 
    y: 250 
  },
  { 
    id: "projector", 
    label: "投影仪", 
    icon: img, 
    x: 250, 
    y: 300 
  },
  { 
    id: "acPanelVoice", 
    label: "86型面板语音口", 
    icon: img, 
    x: 150, 
    y: 200 
  },
  { 
    id: "acPanelData", 
    label: "86型面板数据网口", 
    icon: img, 
    x: 200, 
    y: 250 
  },
  { 
    id: "indoorMonitor1", 
    label: "可视室内机1", 
    icon: img, 
    x: 350, 
    y: 300 
  },
  { 
    id: "indoorMonitor2", 
    label: "可视室内机2", 
    icon: img, 
    x: 400, 
    y: 300 
  },
  { 
    id: "indoorMonitor3", 
    label: "可视室内机3", 
    icon: img, 
    x: 450, 
    y: 300 
  },
  { 
    id: "camera1", 
    label: "摄像机1", 
    icon: img, 
    x: 750, 
    y: 100 
  },
  { 
    id: "camera2", 
    label: "摄像机2", 
    icon: img, 
    x: 750, 
    y: 150 
  },
  { 
    id: "camera3", 
    label: "摄像机3", 
    icon: img, 
    x: 750, 
    y: 200 
  },
  { 
    id: "camera4", 
    label: "摄像机4", 
    icon: img, 
    x: 750, 
    y: 250 
  },
  { 
    id: "camera5", 
    label: "摄像机5", 
    icon: img, 
    x: 750, 
    y: 300 
  },
  { 
    id: "camera6", 
    label: "摄像机6", 
    icon: img, 
    x: 750, 
    y: 350 
  },
  { 
    id: "apPanel1", 
    label: "86型AP面板1", 
    icon: img, 
    x: 700, 
    y: 100 
  },
  { 
    id: "apPanel2", 
    label: "86型AP面板2", 
    icon: img, 
    x: 700, 
    y: 150 
  },
  { 
    id: "apPanel3", 
    label: "86型AP面板3", 
    icon: img, 
    x: 700, 
    y: 200 
  },
  { 
    id: "apPanel4", 
    label: "86型AP面板4", 
    icon: img, 
    x: 700, 
    y: 250 
  },
  { 
    id: "apPanel5", 
    label: "86型AP面板5", 
    icon: img, 
    x: 700, 
    y: 300 
  },
  { 
    id: "apPanel6", 
    label: "86型AP面板6", 
    icon: img, 
    x: 700, 
    y: 350 
  }
];

export const links = [
  { source: "internet", target: "opticalModem" },
  { source: "opticalModem", target: "gateway" },
  { source: "gateway", target: "nas" },
  { source: "gateway", target: "layer2Switch" },
  { source: "layer2Switch", target: "acManager" },
  { source: "layer2Switch", target: "monitorPoeSwitch" },
  { source: "layer2Switch", target: "poeSwitch" },
  { source: "layer2Switch", target: "videoDoorDecoder" },
  { source: "monitorPoeSwitch", target: "camera1" },
  { source: "poeSwitch", target: "apPanel1" },
  { source: "poeSwitch", target: "apPanel2" },
  { source: "poeSwitch", target: "apPanel3" },
  { source: "poeSwitch", target: "apPanel4" },
  { source: "poeSwitch", target: "apPanel5" },
  { source: "poeSwitch", target: "apPanel6" },
  { source: "poeSwitch", target: "nvr" },
  { source: "videoDoorDecoder", target: "videoDoorPhone" },
  { source: "videoDoorDecoder", target: "indoorMonitor1" },
  { source: "videoDoorDecoder", target: "indoorMonitor2" },
  { source: "videoDoorDecoder", target: "indoorMonitor3" },
  { source: "opticalModem", target: "acPanelVoice" },
  { source: "opticalModem", target: "acPanelData" },
  { source: "acPanelData", target: "projector" },
  { source: "apPanel1", target: "camera2" },
  { source: "apPanel2", target: "camera3" },
  { source: "apPanel3", target: "camera4" },
  { source: "apPanel4", target: "camera5" },
  { source: "apPanel5", target: "camera6" }
];